#include <iostream>
#include <vector>
using namespace std;

class A {
	private:
		int nld;
	public:
		A(int n)
		{
			nld = n;
			cout << nld << "constructor" << endl;
		}
		~A() {
			cout << nld << "destructor" << endl;
		}
};

int main() {
	vector<A *>vp;
	vp.push_back(new A(1));
	vp.push_back(new A(2));

	A a(4);
	return 0;
}